﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="Seguimiento_POA_Especifico.aspx.vb" Inherits="Devida_Seguimiento_POA_Especifico" Theme="Yahoo-Ocean" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register namespace="AjaxControlToolkit" tagprefix="AjaxControlToolkit" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" />
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />
    <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/PrintScript.js" type="text/javascript"> </script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        function Resaltar_On(GridView) {
            if (GridView != null) {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#5BADFF";
            }
        }

        function Resaltar_Off(GridView) {
            if (GridView != null) {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }
    </script>

    <%--Script Google Analitic--%>
    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

        ga('create', 'UA-46218526-1', 'simdev.gob.pe');
        ga('send', 'pageview');

    </script>
    <%--fin -Script Google Analitic--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
    <asp:Label ID="lb_name" runat="server" Font-Names="Arial" Font-Size="17px" ForeColor="white"
        Text="Seguimiento de Proyectos / Actividades" Font-Bold="True"></asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

      <table style="width:900px; " cellpadding="0" cellspacing="0" >                                      
          <tr>
           <td>
           <div style="border: solid 1px #99aabd; width: 900px;  overflow: auto;" >
               <table cellpadding="0" cellspacing="0" width="900px" style="text-align:left; padding-left:5px" >
                   <tr>
                      <td style="width:80px;"><asp:Label ID="label4" runat="server" CssClass="label" >PPER: </asp:Label></td>
                      <td style="width:700px;"><asp:DropDownList ID="ddlPPER" runat="server" CssClass="ddl" Width="120px" AutoPostBack="true">
                      </asp:DropDownList>
                      </td>
                        <td style="width: 10px">
                           <asp:ImageButton ID="buscar" runat="server" ImageUrl="~/Imagenes/btn_acclupa.jpg"
                               ToolTip="Buscar" />
                       </td>
                   </tr>
                   <tr>
                       <td style="width: 80px" align="left">
                           <asp:Label ID="lblNombre" runat="server" CssClass="label" Text="  Nombre: "></asp:Label>                           
                       </td>
                       <td><asp:TextBox ID="txtNombre" runat="server" CssClass="frm_formato_caja" Width="550px"
                               AutoPostBack="True"></asp:TextBox>
                       </td>
                       <td></td>
                 </tr>                                       
                   <tr>
                      <td style="width:80px;"><asp:Label ID="label6" runat="server" CssClass="label" >Región: </asp:Label></td>
                      <td style="width:700px;"><asp:DropDownList ID="ddlRegion" runat="server" CssClass="ddl" Width="120px" AutoPostBack="true">
                      </asp:DropDownList>
                      </td>
                   </tr>
                   <tr>
                      <td style="width:80px;"><asp:Label ID="label1" runat="server" CssClass="label" >Ejecutor: </asp:Label></td>
                      <td style="width:700px;"><asp:DropDownList ID="ddlEjecutor" runat="server" CssClass="ddl" Width="120px" AutoPostBack="true">
                      </asp:DropDownList>
                      </td>
                   </tr>
                   <tr>
                      <td style="width:80px;"><asp:Label ID="label5" runat="server" CssClass="label" >Semaforo: </asp:Label></td>
                      <td style="width:700px;"><asp:DropDownList ID="ddlSemaforo" runat="server" CssClass="ddl" Width="120px" AutoPostBack="true">
                      </asp:DropDownList>
                      </td>
                      <td></td>
                   </tr>
                   <tr>
                      <td style="width:80px;"><asp:Label ID="label7" runat="server" CssClass="label" >Ordenar: </asp:Label></td>
                      <td style="width:700px;"><asp:DropDownList ID="ddlOrden" runat="server" CssClass="ddl" Width="120px" AutoPostBack="true">
                      </asp:DropDownList>
                      <asp:Label ID="lblOrden" runat="server" CssClass="label" Text="&nbsp POR % GIRADO"></asp:Label>
                      </td>
                      <td></td>
                   </tr>
               </table>
           </div>
           </td>
         </tr>
          <tr>
            <td>
                <table cellpadding="0" cellspacing="0" style="width: 900px; height: 390px;">
                    <tr>
                        <td>
                        <div  style="border: solid 1px #99aabd; width: 900px; height: 390px; overflow: auto;" align="center">
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <asp:GridView ID="gv_impresion" runat="server" AutoGenerateColumns="False" CellPadding="0"
                                        CssClass="grid" Font-Size="8pt" GridLines="Vertical" Width="2000px" AllowPaging="True"
                                        PageSize="9">
                                        <PagerSettings Mode="Numeric" PageButtonCount="20" FirstPageText="PRIMERO" LastPageText="ULTIMO"
                                            NextPageText="SIGUIENTE" PreviousPageText="ANTERIOR" FirstPageImageUrl="~/Imagenes/Primero.png"
                                            LastPageImageUrl="~/Imagenes/Ultimo.png" NextPageImageUrl="~/Imagenes/Siguiente.png"
                                            PreviousPageImageUrl="~/Imagenes/Anterior.png" />
                                            <PagerStyle CssClass="pagina" />                                            
                                            <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" VerticalAlign="Top" />
                                            <Columns>
                                                <asp:TemplateField HeaderText="N°">
                                                    <ItemTemplate>
                                                        <%# Container.DataItemIndex + 1 %>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="20px" />
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="Cod Proy/Act" DataField="POA" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="50px" >
                                                <ItemStyle HorizontalAlign="Left" Width="50px" />
                                                </asp:BoundField>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        PPER</HeaderTemplate>
                                                    <ItemStyle Width="30px" HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPPER" runat="server" Text='<%# Eval("ABREVIATURA") %>'></asp:Label>
                                                        <asp:HiddenField ID="POA" runat="server" Value='<%# Eval("POA") %>' />
                                                        <asp:HiddenField ID="hfPPER" runat="server" Value='<%# Eval("PPER") %>' />
                                                        <asp:HiddenField ID="hfEjecutor" runat="server" Value='<%# Eval("EJECUTOR") %>' />
                                                        <asp:HiddenField ID="hfRegion" runat="server" Value='<%# Eval("UBIGEO") %>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="Ejecutor" DataField="EJE_DES" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="250px" >
                                                <ItemStyle HorizontalAlign="Left" Width="110px" />
                                                </asp:BoundField>                                                      
                                                <asp:BoundField HeaderText="Region" DataField="UBIGEO" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="80px" >
                                                </asp:BoundField>                                             
                                                <asp:BoundField HeaderText="Nombre Proy/Act" 
                                                    DataField="NOMBRE" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="500px" >
                                                </asp:BoundField>   
                                                <asp:BoundField HeaderText="Sem." DataField="SEMAFORO" ItemStyle-Width="20px" >
                                                <ItemStyle Width="20px" />
                                                </asp:BoundField>  
                                                <asp:BoundField HeaderText="MONTO TOT PROG" DataField="Monto_Total_Invertido"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px" 
                                                    HtmlEncode="false" DataFormatString="{0:N2}" >
                                                </asp:BoundField>    
                                                 <asp:BoundField HeaderText="Monto Girado" DataField="Monto_Girado"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px" 
                                                    HtmlEncode="false" DataFormatString="{0:N2}" >
                                                </asp:BoundField> 
                                                <asp:BoundField HeaderText="% Girado" DataField="GIRADO_ANUAL"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px" 
                                                    HtmlEncode="false" DataFormatString="{0:P0}" >
                                                </asp:BoundField>   
                                                 <asp:BoundField HeaderText="Observaciones" DataField="OBSERVACIONES" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="420px" >
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Acciones" DataField="ACCION" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="420px" >
                                                </asp:BoundField>  
                                                  <asp:BoundField HeaderText="Monitoreador" DataField="MONITOREADOR" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="100px" >
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Especialista" DataField="ESPECIALISTA" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="100px" >
                                                </asp:BoundField>                                                                                                                                  
                                            </Columns>
                                            <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
                                            <AlternatingRowStyle BackColor="#CEDAF2" />                                        
                                        </asp:GridView>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="gv_impresion" EventName="SelectedIndexChanged" />                                    
                                    <asp:AsyncPostBackTrigger ControlID="txtNombre" EventName="TextChanged" />                                                                       
                                    <asp:AsyncPostBackTrigger ControlID="ddlRegion" EventName="SelectedIndexChanged" />
                                    <asp:AsyncPostBackTrigger ControlID="ddlEjecutor" EventName="SelectedIndexChanged" />
                                    <asp:AsyncPostBackTrigger ControlID="ddlSemaforo" EventName="SelectedIndexChanged" />
                                    <asp:AsyncPostBackTrigger ControlID="ddlOrden" EventName="SelectedIndexChanged" />
                                    <asp:AsyncPostBackTrigger ControlID="buscar" EventName="Click" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </div>                       
                        <div id="print_area2" style="width: 900px; display: none;" >
                                    <asp:Label ID="Label3" runat="server" Font-Names="Arial" align="Right" Font-Size="17px"
                                        ForeColor="black" Text="Lista de Proyectos Asignados " Font-Bold="True"></asp:Label>
                                    <asp:GridView ID="gv_doc" runat="server" AutoGenerateColumns="False" BorderColor="Black"
                                        CellPadding="4" Font-Size="8pt" GridLines="both" Width="900px" HeaderStyle-BackColor="#66CC99">
                                        <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" VerticalAlign="Top" />
                                             <Columns>
                                                <asp:TemplateField HeaderText="N°">
                                                    <ItemTemplate>
                                                        <%# Container.DataItemIndex + 1 %>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="20px" />
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="Cod Proy/Act" DataField="POA" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="50px" >
                                                <ItemStyle HorizontalAlign="Left" Width="50px" />
                                                </asp:BoundField>
                                                <asp:TemplateField>
                                                    <HeaderTemplate>
                                                        PPER</HeaderTemplate>
                                                    <ItemStyle Width="30px" HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblPPER" runat="server" Text='<%# Eval("ABREVIATURA") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="Ejecutor" DataField="EJE_DES" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="250px" >
                                                <ItemStyle HorizontalAlign="Left" Width="110px" />
                                                </asp:BoundField>  
                                                <asp:BoundField HeaderText="Region" DataField="UBIGEO" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="80px" >
                                                </asp:BoundField>                                               
                                                <asp:BoundField HeaderText="Nombre Proy/Act" 
                                                    DataField="NOMBRE" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="500px" >
                                                </asp:BoundField>   
                                                <asp:BoundField HeaderText="Sem." DataField="SEMAFORO" ItemStyle-Width="20px" >
                                                <ItemStyle Width="20px" />
                                                </asp:BoundField>  
                                                <asp:BoundField HeaderText="MONTO TOT PROG" DataField="Monto_Total_Invertido"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px" 
                                                    HtmlEncode="false" DataFormatString="{0:N2}" >
                                                </asp:BoundField>    
                                                 <asp:BoundField HeaderText="Monto Girado" DataField="Monto_Girado"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="70px" 
                                                    HtmlEncode="false" DataFormatString="{0:N2}" >
                                                </asp:BoundField> 
                                                <asp:BoundField HeaderText="% Girado" DataField="GIRADO_ANUAL"
                                                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="50px" 
                                                    HtmlEncode="false" DataFormatString="{0:P0}" >
                                                </asp:BoundField>   
                                                 <asp:BoundField HeaderText="Observaciones" DataField="OBSERVACIONES" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="420px" >
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Acciones" DataField="ACCION" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="420px" >
                                                </asp:BoundField>  
                                                  <asp:BoundField HeaderText="Monitoreador" DataField="MONITOREADOR" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="100px" >
                                                </asp:BoundField>
                                                <asp:BoundField HeaderText="Especialista" DataField="ESPECIALISTA" ItemStyle-HorizontalAlign="Left"
                                                    ItemStyle-Width="100px" >
                                                </asp:BoundField>                                                                                                                                  
                                            </Columns>

                                    </asp:GridView>
                               </div>
                        </td>
                    </tr>
                </table>
            </td>
         </tr>    
          <tr>
          <td>
              <table width="900px" cellpadding="0" cellspacing="0"  >
                  <tr>
                      <td width="100px" style="text-align:left; vertical-align:top;">
                          <asp:ImageButton ID="btnAgregar" runat="server" ImageUrl="~/Imagenes/btnVerPOA.png"
                              ToolTip="a]gregar Avance Financiero Semanal" Height="22px" />
                      </td>
                      <td width="350px" style="text-align:left; vertical-align:top;">
                          &nbsp;</td>
                      <td width="350px" style="text-align:right; vertical-align:top;">
                        <asp:ImageButton ID="btnExportar" runat="server" ImageUrl="~/Imagenes/btnExportar.png" ToolTip="Exportar a Excel" />
                      </td>
                      <td width="100px" style="text-align:right; vertical-align:top;">
                        <asp:ImageButton ID="ibn_salir" runat="server" ImageUrl="~/Imagenes/btnSalir.png" ToolTip="Salir" />
                      </td>
                  </tr>
              </table>
          </td></tr>
    </table>

<uc1:Alerta id="alerta" runat="server"></uc1:Alerta>
</asp:Content>

